package com.anxin.registerManagement.controller.datav;

import com.anxin.registerManagement.service.datav.DatavService;
import com.anxin.registerManagement.util.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author anxin
 * @date 2022/4/3 20:56
 */
@RestController
@RequestMapping("/datav")
public class DatavController {

    @Autowired
    DatavService datavService;

    @GetMapping("/role-distribution")
    public ResultUtil getRoleDistribution(){
        return ResultUtil.success(datavService.getRoleDistribution());
    }

}
